<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.css">
    <link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css">
    <script src="https://unpkg.com/swiper@8/swiper-bundle.js"> </script>
    <script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"> </script>
    <script src="https://unpkg.com/swiper@8/swiper-bundle.min.js.map"> </script>
    <script type="module">
        import Swiper from 'https://unpkg.com/swiper@8/swiper-bundle.esm.browser.min.js'
        const swiper = new Swiper(...)
    </script>


    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/5.x.x/css/swiper.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/5.x.x/css/swiper.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/5.x.x/js/swiper.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/5.x.x/js/swiper.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/5.x.x/js/swiper.esm.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/5.x.x/js/swiper.esm.bundle.js"></script>

    <style>
        .kerwin {
            width: 600px;
            height: 300px;
            background: yellow;
        }
    </style>

</head>

<body>
    <!-- 必须符合的DOM结构，class不能更改 -->
    <div class="swiper-container kerwin">
        <!-- 容器 -->
        <div class="swiper-wrapper">
            <!-- 包装 -->
            <div class="swiper-slide">Slide 1111</div>
            <div class="swiper-slide">Slide 2222</div>
            <div class="swiper-slide">Slide 3333</div>

            <!-- 分页器 -->
            <div class="swiper-pagination"></div>
        </div>
    </div>

    <script src="https://unpkg.com/swiper@8/swiper-bundle.min.js.map"> </script>
    <script>
        //初始化DOM 结构
        new Swiper(".kerwin", {
            loop: true, //水平轮播
            // direction: "vertical" //垂直轮播
            navigation: {
                nextE1: '.swiper-button-next',
                prevE1: '.swiper-button-prev',
            },
            pagination: {
                el: ".swiper-pagination",
            },

        })  
    </script>
</body>

</html>